package com.groupbuying.cheetah.order.orderManagement.dao;

import com.groupbuying.cheetah.order.orderManagement.domain.OrderUshopDO;
import com.groupbuying.cheetah.order.orderManagement.dto.OrderUshopDTO;
import com.groupbuying.cheetah.order.orderManagement.dto.OrderUshopFirstDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 够样优店单订单表
 * @author zmlmagic
 * @email zmlmagic@163.com
 * @date 2019-05-05 01:59:51
 * @des
 */

@Mapper
@Repository
public interface OrderUshopDao {

	OrderUshopDO get(String orderId);
	
	List<OrderUshopDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(OrderUshopDO orderUshop);
	
	int update(OrderUshopDO orderUshop);
	
	int remove(String order_id);
	
	int batchRemove(String[] orderIds);


	List<OrderUshopFirstDTO> getOrderByCustomer(Map<String, Object> map);

	List<OrderUshopDTO> getDataByCustomer(Map<String, Object> map);

	int countForOrder(Map<String, Object> map);
	/*List<OrderUshopDO> getOrderByCountId(Map <String, Object> map);

	List<OrderUshopDO> getOrderByGmtTime(Map <String, Object> map);*/

	List<OrderUshopDTO> getTodayOrder(Map<String, Object> map);

	int countOrder(Map<String, Object> map);

	BigDecimal countOderMoney(Map<String, Object> map);

	int countOderNumber(Map<String, Object> map);
	//统计实付金额
	BigDecimal countPayMoney(List<String> externalId);

	List<String> getSettleIds (Map<String,Object> map);

	List<String> getRefundIds (Map<String,Object> map);
}
